package com.leenmvc.core.exception;

/**
 * 验证异常
 */
public class ValidatorException extends RuntimeException {

    private String message;

    private int code;

    private boolean show;

    public ValidatorException() {}

    public ValidatorException(String message) {
        this.show = true;
        this.message = message;
    }

    public ValidatorException(String message, boolean show) {
        this.show = show;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean getShow() {
        return show;
    }

    public void setShow(boolean show) {
        this.show = show;
    }
}
